package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 聊天信息管理对象 chat_content，管理聊天
 * 
 * @author ruoyi
 * @date 2024-01-04
 */
public class ChatContent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 聊天内容编号 */
    private Long chatId;

    /** 发送者账号 */
    @Excel(name = "发送者账号")
    private String senderUserid;

    /** 接收者账号 */
    @Excel(name = "接收者账号")
    private String receiverUserid;

    /** 发送人类型（0管理员，1商家，2用户 ） */
    @Excel(name = "发送人类型", readConverterExp = "0=管理员，1商家，2用户")
    private Long senderType;

    /** 接收人类型（0管理员，1商家，2用户 ） */
    @Excel(name = "接收人类型", readConverterExp = "0=管理员，1商家，2用户")
    private Long receiverType;

    /** 聊天内容 */
    @Excel(name = "聊天内容")
    private String content;

    /** 发送时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发送时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sendTime;

    public void setChatId(Long chatId) 
    {
        this.chatId = chatId;
    }

    public Long getChatId() 
    {
        return chatId;
    }
    public void setSenderUserid(String senderUserid) 
    {
        this.senderUserid = senderUserid;
    }

    public String getSenderUserid() 
    {
        return senderUserid;
    }
    public void setReceiverUserid(String receiverUserid) 
    {
        this.receiverUserid = receiverUserid;
    }

    public String getReceiverUserid() 
    {
        return receiverUserid;
    }
    public void setSenderType(Long senderType) 
    {
        this.senderType = senderType;
    }

    public Long getSenderType() 
    {
        return senderType;
    }
    public void setReceiverType(Long receiverType) 
    {
        this.receiverType = receiverType;
    }

    public Long getReceiverType() 
    {
        return receiverType;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setSendTime(Date sendTime) 
    {
        this.sendTime = sendTime;
    }

    public Date getSendTime() 
    {
        return sendTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("chatId", getChatId())
            .append("senderUserid", getSenderUserid())
            .append("receiverUserid", getReceiverUserid())
            .append("senderType", getSenderType())
            .append("receiverType", getReceiverType())
            .append("content", getContent())
            .append("sendTime", getSendTime())
            .toString();
    }
}
